package com.dmatek.uwb.packet.bean;

import java.util.ArrayList;
import java.util.List;

import com.dmatek.uwb.xml.dom.bean.Point;
/***
 * 防止定位三点位于一条直线抽象出来的工具类
 * @author zhangfu
 * @data 2019年6月22日 下午2:55:30
 * @Description
 */
public class LocalFilter {
	private Point local;
	private double angle;
	private List<ENodeBDistance> referPoses;
	private String id1, id2, id3;
	public LocalFilter() {
		super();
		this.referPoses = new ArrayList<ENodeBDistance>();
	}
	public LocalFilter(Point local, double angle, String id1, String id2, String id3,
			ENodeBDistance...bDistances) {
		super();
		this.local = local;
		this.angle = angle;
		this.id1 = id1;
		this.id2 = id2;
		this.id3 = id3;
		this.referPoses = new ArrayList<ENodeBDistance>();
		for (ENodeBDistance eNodeBDistance : bDistances) {
			this.referPoses.add(eNodeBDistance);
		}
	}
	public Point getLocal() {
		return local;
	}
	public void setLocal(Point local) {
		this.local = local;
	}
	public double getAngle() {
		return angle;
	}
	public void setAngle(double angle) {
		this.angle = angle;
	}
	public List<ENodeBDistance> getReferPoses() {
		return referPoses;
	}
	public void setReferPoses(List<ENodeBDistance> referPoses) {
		this.referPoses = referPoses;
	}
	public String getId1() {
		return id1;
	}
	public void setId1(String id1) {
		this.id1 = id1;
	}
	public String getId2() {
		return id2;
	}
	public void setId2(String id2) {
		this.id2 = id2;
	}
	public String getId3() {
		return id3;
	}
	public void setId3(String id3) {
		this.id3 = id3;
	}
}
